package com.itheima.xiancheng.demo6;

public class Girl extends Thread{
    static  int money=10;

    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        money-=5;
        System.out.println("女孩知道还剩"+money);

    }
}
